home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLR / glrduck / SoXtGLRRenderArea.h < prev   
Encoding:
C/C++ Source or Header  |  1996-11-11  |  2.0 KB  |  61 lines

  1. /******************************************************************************
  2.  * $Id: SoXtGLRRenderArea.h,v 1.1 1996/03/05 00:22:05 dave Exp $
  3.  * 
  4.  * Source File Name: SoXtGLRRenderArea.h
  5.  * 
  6.  *             Copyright (c) 1991-96 Silicon Graphics, Inc.
  7.  *            SILICON GRAPHICS INC., Mountain View, California
  8.  *  
  9.  * Permission to use, copy, modify, distribute, and sell this software and
  10.  * its documentation for any purpose is hereby granted without fee, provided
  11.  * that the name of Silicon Graphics may not be used in any advertising or
  12.  * publicity relating to the software without the specific, prior written
  13.  * permission of Silicon Graphics.
  14.  * 
  15.  * The software is provided AS-IS and without WARRANTY of any kind,
  16.  * express, implied or otherwise, including without limitation, any
  17.  * warranty of merchantabilityl or fitness for a particular purpose.
  18.  * 
  19.  * In no event shall Silicon Graphics be liable for any special, incidental,
  20.  * indirect or consequential damages of any kind, or any damages whatsoever
  21.  * resulting from loss of use, data or profits, whether or not advised of the
  22.  * possibility of damage, and on any theory of liability, arising out of or in
  23.  * connection with the use or performance of this software. Contractor is 
  24.  * SILICON GRAPHICS, INC., 2011 N. Shoreline blvd., Mountain View, CA. 94039
  25.  * 
  26.  * Language: C++
  27.  * 
  28.  * Description: 
  29.  * 
  30.  * Revision History: 
  31.  *  02/08/96  ROE  Initial Coding.
  32.  *     
  33.  *****************************************************************************/
  34. #ifndef SOXTGLRENDERAREA_H
  35. #define SOXTGLRENDERAREA_H
  36.  
  37. #include <Inventor/Xt/SoXtRenderArea.h>
  38. #include <GL/glr.h>
  39.  
  40. class SoXtGLRRenderArea : public SoXtRenderArea {
  41. public:
  42.   SoXtGLRRenderArea(int [], Widget parent = NULL, const char *name = NULL, 
  43.             SbBool = TRUE, SbBool = TRUE, SbBool = TRUE);
  44.  
  45.   virtual ~SoXtGLRRenderArea() {};
  46.  
  47.   enum Quality {LOW, HIGH};
  48.  
  49.   void render(SoXtGLRRenderArea::Quality);
  50.  
  51. protected:
  52.   void renderRemote();
  53.  
  54. private:
  55.  
  56.   GLrSession    session;
  57.   GLrCanvas canvas;
  58.   static GLint fallbackAttributes[];
  59. };
  60. #endif
  61.